package lingou.homework.postbar.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import lingou.homework.postbar.domain.LikeOperation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface LikeOperationMapper extends BaseMapper<LikeOperation> {
    @Select("select * from like_operation where userID = #{userID} and postID = #{postID}")
    LikeOperation get(@Param("userID") long userId,
                      @Param("postID") long postId);
}
